package com.happy.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.happy.manage.mapper.FollowsMapper;
import com.happy.manage.domain.Follows;
import com.happy.manage.service.IFollowsService;

/**
 * 关注Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
@Service
public class FollowsServiceImpl implements IFollowsService 
{
    @Autowired
    private FollowsMapper followsMapper;

    /**
     * 查询关注
     * 
     * @param followId 关注主键
     * @return 关注
     */
    @Override
    public Follows selectFollowsByFollowId(Long followId)
    {
        return followsMapper.selectFollowsByFollowId(followId);
    }

    /**
     * 查询关注列表
     * 
     * @param follows 关注
     * @return 关注
     */
    @Override
    public List<Follows> selectFollowsList(Follows follows)
    {
        return followsMapper.selectFollowsList(follows);
    }

    /**
     * 新增关注
     * 
     * @param follows 关注
     * @return 结果
     */
    @Override
    public int insertFollows(Follows follows)
    {
        return followsMapper.insertFollows(follows);
    }

    /**
     * 修改关注
     * 
     * @param follows 关注
     * @return 结果
     */
    @Override
    public int updateFollows(Follows follows)
    {
        return followsMapper.updateFollows(follows);
    }

    /**
     * 批量删除关注
     * 
     * @param followIds 需要删除的关注主键
     * @return 结果
     */
    @Override
    public int deleteFollowsByFollowIds(Long[] followIds)
    {
        return followsMapper.deleteFollowsByFollowIds(followIds);
    }

    /**
     * 删除关注信息
     * 
     * @param followId 关注主键
     * @return 结果
     */
    @Override
    public int deleteFollowsByFollowId(Long followId)
    {
        return followsMapper.deleteFollowsByFollowId(followId);
    }
}
